package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the trepeat database table.
 * 
 */
@Entity
@NamedQuery(name="Trepeat.findAll", query="SELECT t FROM Trepeat t")
public class Trepeat implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int trepeatid;

	@Temporal(TemporalType.DATE)
	private Date trepeattime;

	//bi-directional many-to-many association to Activity
	@ManyToMany(mappedBy="trepeats")
	private List<Activity> activities;

	//bi-directional many-to-many association to Tarrange
	@ManyToMany(mappedBy="trepeats")
	private List<Tarrange> tarranges;

	//bi-directional many-to-many association to Texaminee
	@ManyToMany(mappedBy="trepeats")
	private List<Texaminee> texaminees;

	public Trepeat() {
	}

	public int getTrepeatid() {
		return this.trepeatid;
	}

	public void setTrepeatid(int trepeatid) {
		this.trepeatid = trepeatid;
	}

	public Date getTrepeattime() {
		return this.trepeattime;
	}

	public void setTrepeattime(Date trepeattime) {
		this.trepeattime = trepeattime;
	}

	public List<Activity> getActivities() {
		return this.activities;
	}

	public void setActivities(List<Activity> activities) {
		this.activities = activities;
	}

	public List<Tarrange> getTarranges() {
		return this.tarranges;
	}

	public void setTarranges(List<Tarrange> tarranges) {
		this.tarranges = tarranges;
	}

	public List<Texaminee> getTexaminees() {
		return this.texaminees;
	}

	public void setTexaminees(List<Texaminee> texaminees) {
		this.texaminees = texaminees;
	}

}